package game.ui.controls
{
	import flash.display.*;
	import flash.events.*;
	
	public class RxUIElementContainer extends RxUIElement
	{
		private var m_horizontal:Boolean;
		private var m_gap:int = 0;
		private var m_align:String = "top";
		private var m_childrenChanged:Boolean = false;
		private var m_paddingLeft:int = 0;
		private var m_paddingRight:int = 0;
		private var m_paddingTop:int = 0;
		private var m_paddingBottom:int = 0;
		private var m_reverse:Boolean = false;
		
		public function RxUIElementContainer(horizontal:Boolean = false)
		{
			m_measuredWidth = 0;
			m_measuredHeight = 0;
			this.m_horizontal = horizontal;
		}
		
		public function SetGap(gap:int) : void
		{
			this.m_gap = gap;
			InvalidateSize();
		}
		
		public function SetReverseChildOrder(reverse:Boolean) : void
		{
			this.m_reverse = reverse;
			InvalidateSize();
		}
	}
}